package com.art.sunflower.service;

import com.art.sunflower.exception.NullMasterException;
import com.art.sunflower.util.MyPageInfo;

import java.security.NoSuchAlgorithmException;
import java.util.Map;

public interface MasterService {

    MyPageInfo getList(Integer pageSize, Integer pageNo) throws NullMasterException;

    void add(String username, String password, String phone, String name) throws NoSuchAlgorithmException;

    void update(Integer id, String username, String password, String phone, String name) throws NoSuchAlgorithmException, NullMasterException;

    void delete(Integer id) throws NullMasterException;

    Map<String, Object> getById(Integer id) throws NullMasterException;
}
